//
//  LKMyShopDetailTableHeaderView.m
//  Mideleague_Shop
//
//  Created by Zhiwang on 2020/5/26.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKMyShopDetailTableHeaderView.h"

@interface LKMyShopDetailTableHeaderView()
@property (weak, nonatomic) IBOutlet UILabel *tradeLabel;

@property (weak, nonatomic) IBOutlet UILabel *payLabel;

@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;

@end


@implementation LKMyShopDetailTableHeaderView


-(void)setIsAgent:(BOOL)isAgent{
    _isAgent = isAgent;
    if (_isAgent) {
        self.tradeLabel.hidden = YES;
        self.payLabel.hidden = YES;
        self.moneyLabel.text = @"代理费率";
    }
}
-(void)setIsTradeCountFirst:(BOOL)isTradeCountFirst{
    _isTradeCountFirst = isTradeCountFirst;
    if (_isTradeCountFirst) {
        self.payLabel.text = @"支付方式";
        self.moneyLabel.text = @"金额(元)";
        self.tradeLabel.text = @"占比(%)";
    }
}
-(void)setIsTradeCountSecond:(BOOL)isTradeCountSecond{
    _isTradeCountSecond = isTradeCountSecond;
    if (_isTradeCountSecond) {
        self.payLabel.text = @"支付方式";
        self.moneyLabel.text = @"笔数(笔)";
        self.tradeLabel.text = @"占比(%)";
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
